#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int test(int a, int b)
{
	int count = 0;
	int value = a ^ b;
	while (value != 0)
	{
		if ((value & 1) == 1)
		{
			count++;
		}
		value = value >> 1;
	}
	return count;
}
int main()
{
	int num1, num2;
	scanf("%d %d", &num1, &num2);
	int count = test(num1, num2);
	printf("%d", count);
	return 0;
}